<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=system&act=set">系统设置</a> &raquo; 语言风格管理</p><!-- inc:position.fr --></div>

<div class="page_pad">
  <div class="content_add"><button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=tpl&act=add')">添加新风格</button></div>

  <div class="content_box">
    <div class="content_bor">
      <table class="ctable">
        <!-- $rslist AS $key=>$value -->
        <tr>
          <td class="left">{:$value[name]}：</td>
          <td class="right">
            <!-- if($value[isdefault]) -->
            <button class="gbutton" type="button" style="color:red;">默认使用</button>
            <!-- else -->
            <button class="gbutton" type="button" onclick="qgurl('{:$mainlink}?file=tpl&act=setdefault&id={:$value[id]}')">设为默认</button>
            <!-- end -->
            <button class="gbutton" type="button" onclick="to_modify({:$value[id]})">编辑</button>
            <button class="gbutton" type="button" onclick="to_delete('{:$value[id]}','{:$value[name]}')">删除</button>
          </td>
        </tr>
        <!-- end -->
      </table>
    </div>
  </div><!--content_box-->
</div><!--page_pad-->

<script type="text/javascript">
function to_modify(id)
{
	qgurl("{:$mainlink}?file=tpl&act=modify&id="+id);
}
function to_delete(id,name)
{
	url = "{:$mainlink}?file=tpl&act=delete&id="+id;
	tip_confirm("确定要删除 " + name + " 风格吗？删除后不能恢复！",url);
}
</script>

<!-- inc:frame.bottom -->